<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社区内容 - 1024导航后台</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#1024nav',
                        accent: '#F59E0B',
                        dark: '#1F2937',
                        light: '#F9FAFB',
                        danger: '#EF4444'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .sidebar-active {
                @apply bg-primary/10 text-primary border-l-4 border-primary;
            }
            .table-row-hover {
                @apply hover:bg-gray-50 transition-colors;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800 flex h-screen overflow-hidden">
    <!-- 侧边栏导航 -->
    <aside class="w-64 bg-white shadow-sm h-full border-r border-gray-200 flex-shrink-0 hidden md:block">
        <div class="p-5 border-b border-gray-200">
            <div class="text-primary text-xl font-bold">1024<span class="text-secondary">导航</span></div>
            <p class="text-xs text-gray-500 mt-1">管理员后台</p>
        </div>

        <nav class="p-4">
            <p class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-3 px-3">主菜单</p>
            <ul class="space-y-1">
                <li>
                    <a href="admin_index.html"
                        class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-gray-50 rounded-md transition-colors">
                        <i class="fa fa-tachometer w-5 text-center mr-3"></i>
                        <span>控制台</span>
                    </a>
                </li>
                <li>
                    <a href="admin_resource_manager.html"
                        class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-gray-50 rounded-md transition-colors">
                        <i class="fa fa-th-large w-5 text-center mr-3"></i>
                        <span>资源管理</span>
                    </a>
                </li>
                <li>
                    <a href="#"
                        class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-gray-50 rounded-md transition-colors">
                        <i class="fa fa-wrench w-5 text-center mr-3"></i>
                        <span>工具管理</span>
                    </a>
                </li>
                <li>
                    <a href="#"
                        class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-gray-50 rounded-md transition-colors">
                        <i class="fa fa-users w-5 text-center mr-3"></i>
                        <span>用户管理</span>
                    </a>
                </li>
                <li>
                    <a href="#" class="sidebar-active flex items-center px-3 py-3 text-sm rounded-md">
                        <i class="fa fa-comments w-5 text-center mr-3"></i>
                        <span>社区内容</span>
                    </a>
                </li>
                <li>
                    <a href="#"
                        class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-gray-50 rounded-md transition-colors">
                        <i class="fa fa-bar-chart w-5 text-center mr-3"></i>
                        <span>数据统计</span>
                    </a>
                </li>
            </ul>

            <div class="border-t border-gray-100 my-3"></div>

            <ul class="space-y-1">
                <li>
                    <a href="#"
                        class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-gray-50 rounded-md transition-colors">
                        <i class="fa fa-cog w-5 text-center mr-3"></i>
                        <span>系统设置</span>
                    </a>
                </li>
                <li>
                    <a href="#"
                        class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-gray-50 rounded-md transition-colors">
                        <i class="fa fa-question-circle w-5 text-center mr-3"></i>
                        <span>帮助中心</span>
                    </a>
                </li>
            </ul>
        </nav>
    </aside>

    <!-- 主内容区 -->
    <div class="flex-1 flex flex-col overflow-hidden">
        <!-- 顶部导航 -->
        <header class="bg-white shadow-sm h-16 border-b border-gray-200 flex items-center justify-between px-6">
            <div class="flex items-center">
                <button class="md:hidden mr-4 text-gray-600">
                    <i class="fa fa-bars text-xl"></i>
                </button>
                <h1 class="text-lg font-semibold">社区内容管理</h1>
            </div>

            <div class="flex items-center space-x-4">
                <div class="relative">
                    <button class="text-gray-600 hover:text-primary transition-colors relative">
                        <i class="fa fa-bell text-xl"></i>
                        <span
                            class="absolute -top-1 -right-1 w-4 h-4 bg-danger rounded-full text-white text-xs flex items-center justify-center">5</span>
                    </button>
                </div>

                <div class="relative group">
                    <button class="flex items-center space-x-2">
                        <img src="https://picsum.photos/id/1005/40/40" alt="管理员头像"
                            class="w-8 h-8 rounded-full object-cover">
                        <span class="text-sm font-medium hidden md:inline-block">管理员</span>
                        <i class="fa fa-angle-down text-gray-500"></i>
                    </button>
                    <div
                        class="absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg py-2 z-10 hidden group-hover:block">
                        <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">个人资料</a>
                        <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">账号设置</a>
                        <div class="border-t border-gray-100 my-1"></div>
                        <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">退出登录</a>
                    </div>
                </div>
            </div>
        </header>

        <!-- 页面内容 -->
        <main class="flex-1 overflow-y-auto p-6 bg-gray-50">
            <!-- 统计卡片 -->
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <p class="text-gray-500 text-sm">总帖子数</p>
                        <div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                            <i class="fa fa-file-text-o"></i>
                        </div>
                    </div>
                    <div class="flex items-end justify-between">
                        <div>
                            <h3 class="text-2xl font-bold">1,284</h3>
                            <p class="text-green-600 text-xs flex items-center mt-1">
                                <i class="fa fa-arrow-up mr-1"></i> 12.5% <span class="text-gray-500 ml-1">较上月</span>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <p class="text-gray-500 text-sm">待审核</p>
                        <div
                            class="w-10 h-10 rounded-full bg-amber-100 flex items-center justify-center text-amber-600">
                            <i class="fa fa-clock-o"></i>
                        </div>
                    </div>
                    <div class="flex items-end justify-between">
                        <div>
                            <h3 class="text-2xl font-bold">36</h3>
                            <p class="text-red-600 text-xs flex items-center mt-1">
                                <i class="fa fa-arrow-up mr-1"></i> 8.2% <span class="text-gray-500 ml-1">较昨日</span>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <p class="text-gray-500 text-sm">评论数</p>
                        <div
                            class="w-10 h-10 rounded-full bg-secondary/10 flex items-center justify-center text-secondary">
                            <i class="fa fa-comments-o"></i>
                        </div>
                    </div>
                    <div class="flex items-end justify-between">
                        <div>
                            <h3 class="text-2xl font-bold">5,742</h3>
                            <p class="text-green-600 text-xs flex items-center mt-1">
                                <i class="fa fa-arrow-up mr-1"></i> 18.3% <span class="text-gray-500 ml-1">较上月</span>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <p class="text-gray-500 text-sm">举报内容</p>
                        <div class="w-10 h-10 rounded-full bg-danger/10 flex items-center justify-center text-danger">
                            <i class="fa fa-flag-o"></i>
                        </div>
                    </div>
                    <div class="flex items-end justify-between">
                        <div>
                            <h3 class="text-2xl font-bold">12</h3>
                            <p class="text-red-600 text-xs flex items-center mt-1">
                                <i class="fa fa-arrow-up mr-1"></i> 3.1% <span class="text-gray-500 ml-1">较昨日</span>
                            </p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 图表区域 -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
                <div class="bg-white rounded-xl shadow-sm p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="font-bold text-lg">社区活跃度趋势</h2>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-xs bg-primary text-white rounded-md">周</button>
                            <button
                                class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">月</button>
                            <button
                                class="px-3 py-1 text-xs bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">年</button>
                        </div>
                    </div>
                    <div class="h-80">
                        <canvas id="activityChart"></canvas>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-sm p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="font-bold text-lg">内容分类占比</h2>
                        <button class="text-gray-500 hover:text-primary transition-colors">
                            <i class="fa fa-ellipsis-v"></i>
                        </button>
                    </div>
                    <div class="h-64 mb-6">
                        <canvas id="categoryChart"></canvas>
                    </div>
                    <div class="space-y-3">
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-primary mr-2"></div>
                                <span class="text-sm">技术讨论</span>
                            </div>
                            <span class="text-sm font-medium">42%</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-secondary mr-2"></div>
                                <span class="text-sm">资源分享</span>
                            </div>
                            <span class="text-sm font-medium">28%</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-accent mr-2"></div>
                                <span class="text-sm">问题求助</span>
                            </div>
                            <span class="text-sm font-medium">18%</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <div class="w-3 h-3 rounded-full bg-purple-500 mr-2"></div>
                                <span class="text-sm">其他内容</span>
                            </div>
                            <span class="text-sm font-medium">12%</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 帖子列表 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
                <div class="p-6 border-b border-gray-100">
                    <div class="flex flex-col md:flex-row md:items-center md:justify-between">
                        <h2 class="font-bold text-lg mb-4 md:mb-0">社区帖子管理</h2>
                        <div class="flex flex-col sm:flex-row gap-3">
                            <div class="relative">
                                <input type="text" placeholder="搜索帖子..."
                                    class="pl-10 pr-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary w-full sm:w-64">
                                <i class="fa fa-search absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"></i>
                            </div>
                            <select
                                class="border border-gray-300 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary">
                                <option>全部状态</option>
                                <option>已通过</option>
                                <option>待审核</option>
                                <option>已拒绝</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="overflow-x-auto">
                    <table class="w-full">
                        <thead>
                            <tr class="bg-gray-50">
                                <th
                                    class="px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    帖子标题</th>
                                <th
                                    class="px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    作者</th>
                                <th
                                    class="px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    分类</th>
                                <th
                                    class="px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    发布时间</th>
                                <th
                                    class="px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    状态</th>
                                <th
                                    class="px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    操作</th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-gray-100">
                            <tr class="table-row-hover">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="font-medium text-gray-900">推荐几个实用的前端开发工具</div>
                                    <div class="text-gray-500 text-xs mt-0.5">有很多不错的前端开发工具想跟大家分享...</div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img src="https://picsum.photos/id/1012/40/40" alt="用户头像"
                                            class="w-8 h-8 rounded-full mr-2">
                                        <span>前端开发者</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">资源分享</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 09:24</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">已通过</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm">
                                    <div class="flex space-x-2">
                                        <button class="text-primary hover:text-primary/80 transition-colors">查看</button>
                                        <button class="text-gray-600 hover:text-gray-900 transition-colors">编辑</button>
                                        <button class="text-danger hover:text-danger/80 transition-colors">删除</button>
                                    </div>
                                </td>
                            </tr>
                            <tr class="table-row-hover">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="font-medium text-gray-900">Python数据分析学习路径求推荐</div>
                                    <div class="text-gray-500 text-xs mt-0.5">想入门Python数据分析，有哪些好的学习资源...</div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img src="https://picsum.photos/id/1025/40/40" alt="用户头像"
                                            class="w-8 h-8 rounded-full mr-2">
                                        <span>数据分析小白</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">问题求助</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 11:38</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">已通过</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm">
                                    <div class="flex space-x-2">
                                        <button class="text-primary hover:text-primary/80 transition-colors">查看</button>
                                        <button class="text-gray-600 hover:text-gray-900 transition-colors">编辑</button>
                                        <button class="text-danger hover:text-danger/80 transition-colors">删除</button>
                                    </div>
                                </td>
                            </tr>
                            <tr class="table-row-hover">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="font-medium text-gray-900">分享一个我开发的在线思维导图工具</div>
                                    <div class="text-gray-500 text-xs mt-0.5">自己开发了一个在线思维导图工具，免费使用...</div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img src="https://picsum.photos/id/1074/40/40" alt="用户头像"
                                            class="w-8 h-8 rounded-full mr-2">
                                        <span>程序猿阿明</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">资源分享</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 14:22</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span
                                        class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">待审核</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm">
                                    <div class="flex space-x-2">
                                        <button class="text-primary hover:text-primary/80 transition-colors">查看</button>
                                        <button
                                            class="text-secondary hover:text-secondary/80 transition-colors">通过</button>
                                        <button class="text-danger hover:text-danger/80 transition-colors">拒绝</button>
                                    </div>
                                </td>
                            </tr>
                            <tr class="table-row-hover">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="font-medium text-gray-900">讨论：AI对前端开发的影响</div>
                                    <div class="text-gray-500 text-xs mt-0.5">ChatGPT等AI工具是否会取代前端开发者...</div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img src="https://picsum.photos/id/1027/40/40" alt="用户头像"
                                            class="w-8 h-8 rounded-full mr-2">
                                        <span>技术观察员</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">技术讨论</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14 20:15</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">已通过</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm">
                                    <div class="flex space-x-2">
                                        <button class="text-primary hover:text-primary/80 transition-colors">查看</button>
                                        <button class="text-gray-600 hover:text-gray-900 transition-colors">编辑</button>
                                        <button class="text-danger hover:text-danger/80 transition-colors">删除</button>
                                    </div>
                                </td>
                            </tr>
                            <tr class="table-row-hover">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="font-medium text-gray-900">推荐一个免费的图标网站</div>
                                    <div class="text-gray-500 text-xs mt-0.5">发现一个免费图标网站，资源很丰富...</div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img src="https://picsum.photos/id/1066/40/40" alt="用户头像"
                                            class="w-8 h-8 rounded-full mr-2">
                                        <span>设计师小A</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">资源分享</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14 16:47</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">已拒绝</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm">
                                    <div class="flex space-x-2">
                                        <button class="text-primary hover:text-primary/80 transition-colors">查看</button>
                                        <button
                                            class="text-secondary hover:text-secondary/80 transition-colors">通过</button>
                                        <button class="text-danger hover:text-danger/80 transition-colors">删除</button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <!-- 分页 -->
                <div class="px-6 py-4 border-t border-gray-100 flex items-center justify-between">
                    <div class="text-sm text-gray-500">
                        显示 <span class="font-medium">1</span> 到 <span class="font-medium">5</span> 条，共 <span
                            class="font-medium">128</span> 条
                    </div>
                    <div class="flex space-x-1">
                        <button
                            class="px-3 py-1 border border-gray-300 rounded-md text-gray-500 hover:bg-gray-50 disabled:opacity-50"
                            disabled>
                            <i class="fa fa-angle-left"></i>
                        </button>
                        <button class="px-3 py-1 border border-primary bg-primary text-white rounded-md">1</button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md hover:bg-gray-50">2</button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md hover:bg-gray-50">3</button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md hover:bg-gray-50">4</button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md hover:bg-gray-50">5</button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">
                            <i class="fa fa-angle-right"></i>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 待处理举报 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                <div class="p-6 border-b border-gray-100">
                    <div class="flex justify-between items-center">
                        <h2 class="font-bold text-lg">待处理举报</h2>
                        <a href="#" class="text-primary text-sm hover:underline">查看全部</a>
                    </div>
                </div>
                <div class="divide-y divide-gray-100">
                    <div class="p-4 table-row-hover">
                        <div class="flex items-start">
                            <div
                                class="w-10 h-10 rounded-lg bg-red-100 flex items-center justify-center text-red-600 mr-3 flex-shrink-0">
                                <i class="fa fa-flag"></i>
                            </div>
                            <div class="flex-1 min-w-0">
                                <h3 class="font-medium text-gray-800">关于"免费影视网站分享"的举报</h3>
                                <p class="text-gray-500 text-sm mt-1">举报原因：包含盗版内容 · 举报时间：2小时前 · 举报人：匿名用户</p>
                                <div
                                    class="mt-3 p-3 bg-gray-50 rounded-md text-sm text-gray-700 border border-gray-100">
                                    该帖子分享的影视网站包含大量盗版影视资源，涉嫌侵犯版权，建议删除处理。
                                </div>
                            </div>
                            <div class="flex-shrink-0 ml-2">
                                <div class="flex flex-col space-y-2">
                                    <button
                                        class="text-xs px-3 py-1 bg-secondary text-white rounded hover:bg-secondary/90 transition-colors">处理</button>
                                    <button
                                        class="text-xs px-3 py-1 bg-gray-100 text-gray-700 rounded hover:bg-gray-200 transition-colors">忽略</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="p-4 table-row-hover">
                        <div class="flex items-start">
                            <div
                                class="w-10 h-10 rounded-lg bg-red-100 flex items-center justify-center text-red-600 mr-3 flex-shrink-0">
                                <i class="fa fa-flag"></i>
                            </div>
                            <div class="flex-1 min-w-0">
                                <h3 class="font-medium text-gray-800">关于评论"这个资源太垃圾了"的举报</h3>
                                <p class="text-gray-500 text-sm mt-1">举报原因：恶意评论 · 举报时间：5小时前 · 举报人：资源作者</p>
                                <div
                                    class="mt-3 p-3 bg-gray-50 rounded-md text-sm text-gray-700 border border-gray-100">
                                    这条评论纯粹是恶意攻击，没有任何建设性意见，请求删除并警告评论者。
                                </div>
                            </div>
                            <div class="flex-shrink-0 ml-2">
                                <div class="flex flex-col space-y-2">
                                    <button
                                        class="text-xs px-3 py-1 bg-secondary text-white rounded hover:bg-secondary/90 transition-colors">处理</button>
                                    <button
                                        class="text-xs px-3 py-1 bg-gray-100 text-gray-700 rounded hover:bg-gray-200 transition-colors">忽略</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // 社区活跃度趋势图表
        const activityCtx = document.getElementById('activityChart').getContext('2d');
        const activityChart = new Chart(activityCtx, {
            type: 'line',
            data: {
                labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
                datasets: [
                    {
                        label: '新帖子',
                        data: [45, 59, 80, 81, 56, 55, 72],
                        borderColor: '#3B82F6',
                        backgroundColor: 'rgba(59, 130, 246, 0.1)',
                        tension: 0.4,
                        fill: true
                    },
                    {
                        label: '评论',
                        data: [28, 48, 40, 19, 86, 27, 50],
                        borderColor: '#10B981',
                        backgroundColor: 'rgba(16, 185, 129, 0.1)',
                        tension: 0.4,
                        fill: true
                    }
                ]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'top',
                    }
                },
                scales: {
                    y: {
                        beginAtZero: true
                    }
                }
            }
        });

        // 内容分类占比图表
        const categoryCtx = document.getElementById('categoryChart').getContext('2d');
        const categoryChart = new Chart(categoryCtx, {
            type: 'doughnut',
            data: {
                labels: ['技术讨论', '资源分享', '问题求助', '其他内容'],
                datasets: [{
                    data: [42, 28, 18, 12],
                    backgroundColor: [
                        '#3B82F6',
                        '#10B981',
                        '#F59E0B',
                        '#8B5CF6'
                    ],
                    borderWidth: 0
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                cutout: '70%',
                plugins: {
                    legend: {
                        display: false
                    }
                }
            }
        });
    </script>
</body>

</html>